package org.xt.entity;

import java.util.Date;

import org.nutz.dao.entity.annotation.ColDefine;
import org.nutz.dao.entity.annotation.ColType;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Table;

/**
 * 产出数据
 * @author XiangTao
 *
 */
@Table("tb_output_data")
public class OutputData extends IdBaseTable{
	@ColDefine(type=ColType.INT)
	@Column
	private int userId;
	
	@ColDefine(type=ColType.INT)
	@Column
	private int outputItemId;
	
	@ColDefine(type=ColType.FLOAT)
	@Column
	private double num1; //白班 INPUT QTY
	
	@ColDefine(type=ColType.FLOAT)
	@Column
	private double num2; //夜班 INPUT QTY 不分的话忽略
	
	@ColDefine(type=ColType.FLOAT)
	@Column
	private double num3; //白班 PASS QTY
	
	@ColDefine(type=ColType.FLOAT)
	@Column
	private double num4; //夜班 PASS QTY 不分的话忽略
	
	@ColDefine(type=ColType.DATE)
	@Column
	private Date time; //日期
	
	@ColDefine(type=ColType.VARCHAR)
	@Column
	private String msg; //数据添加更新消息记录

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public int getOutputItemId() {
		return outputItemId;
	}

	public void setOutputItemId(int outputItemId) {
		this.outputItemId = outputItemId;
	}

	public double getNum1() {
		return num1;
	}

	public void setNum1(double num1) {
		this.num1 = num1;
	}

	public double getNum2() {
		return num2;
	}

	public void setNum2(double num2) {
		this.num2 = num2;
	}

	public double getNum3() {
		return num3;
	}

	public void setNum3(double num3) {
		this.num3 = num3;
	}

	public double getNum4() {
		return num4;
	}

	public void setNum4(double num4) {
		this.num4 = num4;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	@Override
	public String toString() {
		return "OutputData [userId=" + userId + ", outputItemId=" + outputItemId + ", num1=" + num1 + ", num2=" + num2
				+ ", num3=" + num3 + ", num4=" + num4 + ", time=" + time + ", msg=" + msg + "]" + super.toString();
	}
}
